package com.example.permissionservice.dao;

import com.myprojects.common.pojo.UserWithRole;
import com.myprojects.common.pojo.UserWithRoleExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserWithRoleMapper {
    long countByExample(UserWithRoleExample example);

    int deleteByExample(UserWithRoleExample example);

    int deleteLotsByPrimaryKey(List<Integer> idList);

    int deleteByPrimaryKey(Integer id);

    int insert(UserWithRole record);

    int insertSelective(UserWithRole record);

    List<UserWithRole> selectByExample(UserWithRoleExample example);

    UserWithRole selectByPrimaryKey(Integer id);

    UserWithRole selectByUsername(String username);

    int updateByExampleSelective(@Param("record") UserWithRole record, @Param("example") UserWithRoleExample example);

    int updateByExample(@Param("record") UserWithRole record, @Param("example") UserWithRoleExample example);

    int updateByPrimaryKeySelective(UserWithRole record);

    int updateByPrimaryKey(UserWithRole record);

}